package com.doctcloud.hisinfo.histable.document;

import com.doctcloud.common.core.annotation.TableDesc;
import lombok.*;
import org.springframework.data.mongodb.core.mapping.Document;
import org.springframework.data.mongodb.core.mapping.Field;

import java.io.Serializable;
import java.util.List;

@Data
@AllArgsConstructor
@NoArgsConstructor
@EqualsAndHashCode(of = {"drugCode","drugSpec","firmId"})
@ToString
@Document(collection = "drug_desc_info")
@TableDesc("药品附属信息")
public class DrugDescInfoDo implements Serializable {
    private static final long serialVersionUID = 1L;
    /**
     * 药品代码
     */
    @Field("drug_code")
    private String drugCode;
    /**
     * 药品规格
     */
    @Field("drug_spec")
    private String drugSpec;
    /**
     * 药品厂家代码
     */
    @Field("firm_id")
    private String firmId;
    /**
     * 药品说明书
     */
    @Field("instruction")
    private DrugInstructionDo instruction;
    /**
     * 药品标签
     */
    @Field("signCode")
    private List<String> signCode;
}
